package com.example.take_out_dish.service.impl;

import com.example.take_out_dish.entity.Category;
import com.example.take_out_dish.mapper.CategoryMapper;
import com.example.take_out_dish.service.CategoryService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 菜品及套餐分类 服务实现类
 * </p>
 *
 * @author yyyyys
 * @since 2024-07-01
 */
@Service
public class CategoryServiceImpl extends ServiceImpl<CategoryMapper, Category> implements CategoryService {
    @Resource
    private CategoryMapper categoryMapper;
    @Override
    public List<Category> getCategorIdAndName(int type) {
        return categoryMapper.getIdAndName(type);
    }
}
